package com.jyw.system.domain.vo;

import com.jyw.common.annotation.Conversion;
import com.jyw.common.enums.ConversionType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

/**
 * @author Created by ZhangCheng on 2024/01/12
 */
@Data
@ApiModel("系统工单自动派单返回Vo")
@FieldNameConstants
public class SysOrderAutoDispatchVo {

    /**
     * 主键
     */
    @ApiModelProperty("主键")
    private Long id;

    /**
     * 派单模式(1报修科室 2故障分类)
     */
    @ApiModelProperty("派单模式(1报修科室 2故障分类)")
    private Integer dispatchMode;

    /**
     * 故障类型
     */
    @ApiModelProperty("故障类型")
    private String faultType;

    @ApiModelProperty("故障类型名称")
    private String faultTypeName;

    /**
     * 父级故障类型
     */
    @ApiModelProperty("父级故障类型")
    private String parentFaultType;

    /**
     * 报修科室
     */
    @ApiModelProperty("报修科室")
    private Long deptId;


    @ApiModelProperty("报修科室名称")
    private String deptName;

    /**
     * 报修科室
     */
    @ApiModelProperty("上级报修科室")
    private Long deptParentId;

    @ApiModelProperty("所属院区")
    private Long hospitalId;

    @ApiModelProperty("所属院区名称")
    private String hospitalName;

    /**
     * 派单类型(1用户 2小组)
     */
    @ApiModelProperty("派单类型(1用户 2小组)")
    private Integer sendType;

    /**
     *用户id
     */
    @ApiModelProperty("用户id")
    @Conversion(value = ConversionType.USER,name = Fields.sendUserName)
    private Long sendUser;

    @ApiModelProperty("用户名称")
    private String sendUserName;

    /**
     * 小组id
     */
    @ApiModelProperty("小组id")
    @Conversion(value = ConversionType.TEAM,name = Fields.sendTeamName)
    private Long sendTeam;

    @ApiModelProperty("小组名称")
    private String sendTeamName;

}
